package applet;

import java.applet.*;
import java.awt.*;
public class CheckerApplet extends Applet
{
   int squareSize = 50;// initialized to default size
   public void init ()
   {
      String squareSizeParam = getParameter ("squareSize");
      parseSquareSize (squareSizeParam);
      String colorParam = getParameter ("color");
      Color fg = parseColor (colorParam);
      setBackground (Color.black);
      setForeground (fg);
   }
   private void parseSquareSize (String param)
   {
      if (param == null) return;
      try {
         squareSize = Integer.parseInt (param);
      }
      catch (Exception e) {
        // Let default value remain
      }
   }
   private Color parseColor (String param) {return Color.blue;}
   public void paint (Graphics g) {}
   
  
}